﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibFriesland_Campina_CRM
{
    public class BizWareHousingDetail
    {
        #region Thuoc tinh
        public string by_warehousing { get; set; }
        public string by_product { get; set; }
        public int quantity { get; set; }
        #endregion

        #region Ham thiet lap
        public BizWareHousingDetail() { }
        public BizWareHousingDetail(string pBy_warehousing, string pBy_product, int pQuantity)
        {
            by_warehousing = pBy_warehousing;
            by_product = pBy_product;
            quantity = pQuantity;
        }
        #endregion

        #region Phuong thuc
        //Them chi tiet don nhap hang
        public int addWareHousingDetail()
        {
            return DalWareHousingDetail.addWareHousingDetail(this);
        }
        #endregion

        #region Dung cho Report
        //Thong ke so luong san pham nhap cua cua hang
        public static Dataset.DatasetWareHousing getWareHousingbyDateShop(DateTime pFromDate, DateTime pToDate)
        {
            return DalWareHousingDetail.getWareHousingbyDateShop(pFromDate, pToDate);
        }
        #endregion
    }
}
